package com.zx.lean_ui.Activity;

import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;
import androidx.viewpager2.widget.ViewPager2;

import com.zx.lean_ui.Adapter.ViewPagerAdapter;
import com.zx.lean_ui.R;

public class MainActivity4 extends AppCompatActivity {

    private ViewPager2 viewpage;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main4);
        initView();
        ViewPagerAdapter viewpageAdapter=new ViewPagerAdapter();
        viewpage.setAdapter(viewpageAdapter);
    }

    private void initView() {
        viewpage = findViewById(R.id.viewpage);
    }
}